package com.examination.system.administration.response;

import com.examination.framework.model.response.ResultCode;
import io.swagger.annotations.ApiModel;
import lombok.ToString;

/**
 * @author 寇淇芮
 * @Date 2019/9/14 9:58
 */
@ToString
@ApiModel
public enum  DepartmentCode  implements ResultCode {
    invalidBlendingNumber(false,100001,"掺数不合法请重新修改") ,
    dataDuplication(false,100002,"数据重复了"),
    invalidMobilePhoneNumber(false,100003,"无效手机号"),
    noEmployee(false,100004,"没有该员工"),
    failedToDeleteData(false,100005,"删除部门信息失败"),
    dataDoesNotExist(false,100006,"数据不存在请联系管理员确定"),
    inconsistentAmendments(false,10007,"修改数据一致请核实");
    private Boolean success;
    private  int code;
    private  String message;

    private DepartmentCode(Boolean success,int code,String message){
       this.success = success;
       this.code = code;
       this.message = message;
    }
    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }}
